<template>
	<view>

	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		beforeCreate() {
			// isLogin = uni.getStorageSync('LOGIN_TOKEN');
			let isCont = uni.getStorageSync('USER_TOKEN') || ''
			console.log(isCont, '11');
			if (isCont) {
				uni.switchTab({
					url: '/pages/tabBar/index/index'
				})
				return
			} else {
				uni.redirectTo({
					url: '/pages/tabBar/logon/logon'
				})
				return
			}
		},
		methods: {

		}
	}
</script>

<style>

</style>